package com.array;

/**
 * @Author WaveHi
 * @Date 28/7/2021 上午 10:06
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class UseArrayDemo3 {

    public static void main(String[] args) {

        //数组的初始化
        int[] nums = new int[]{1,23,41,53};

        //获取数组的元素
        System.out.println(nums[0]);

        //修改数组的元素
        System.out.println("修改前num[0] = " + nums[0]);
        nums[0] = 34;
        System.out.println("修改后nums[0] = " + nums[0]);

    }

}
